﻿namespace S7.Net.Types
{
    using System;
    using System.Text;

    public static class StringEx
    {
        public static string FromByteArray(byte[] bytes)
        {
            if (bytes.Length < 2)
            {
                return "";
            }
            byte num1 = bytes[0];
            int count = bytes[1];
            return Encoding.ASCII.GetString(bytes, 2, count);
        }
    }
}

